home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr04 / ang141b.zip / FREE-MEM.DOC < prev    next >
Text File  |  1995-02-07  |  8KB  |  169 lines

  1. *   The following is extracted from the readme file that accompanied the
  2. * PC executable of NH3.1.  NH3.1 is a major memory hog, even worse than
  3. * Angband, but most of the advice here is still sound.  I've added my
  4. * comments in lines prefixed by '*' characters.  Hopefully this will help
  5. * people to free up enough memory to run Angband.  Standard disclaimers
  6. * apply -- If you read a subliminal message to make a peanut butter and
  7. * mayonaise sandwich, don't come to me about it...  -CFT
  8. *
  9. * p.s.  I've taken a couple of editorial liberties, to make this file
  10. * slightly more applicable to Angband.  Oh, and anyone offended by the
  11. * humor in the NH doc file can complain to them, not to me... -CFT
  12.  
  13. You asked:
  14.  
  15.     Zounds, my man!  How in the name of all that's pompous can one
  16.     get 505K of user RAM free on one's machine?  Surely one can't
  17.     be expected to use a computer without one's Pop-Up-Ducky
  18.     programme, one's resident Latin Grammar Checker, one's TSR
  19.     edition Who's Who?  We are talking, you understand, of the
  20.     bare necessities of civilised existence!
  21.  
  22. Our resident iconoclast replies:
  23.  
  24. Er, yeah.  Well, safe sex an' all that, you might wanna keep your
  25. virus protection in place, mate.  But the rest you can chuck, along
  26. with the horse.
  27.     Now, don't panic, chum, don't take a fit.  If you need that
  28. stuff when you work, that's one thing.  But when you're playing
  29. NetHack, that's all the fun you need, right?  So what you do is, you
  30. take a floppy disk, you format it bootable, and on that you put your
  31. COMMAND.COM, your ANSI.SYS, and a minimal CONFIG.SYS; just what you
  32. *
  33. * You shouldn't need ANSI.SYS for Angband.  But, if you use it (for color
  34. * prompts, or other nice features), you shouldn't have to worry, since it's
  35. * so tiny... -CFT
  36. *
  37. need to boot.  Oh, yeah, and an AUTOEXEC.BAT that sets up the path to
  38. your NETHACK.EXE.
  39.     So when you want to play NetHack, you put this floppy in the
  40. drive, and reboot.  Presto!  500-510K free, and away you go with the game.
  41. Time to do some work?  Save the game, take out the floppy, reboot, and
  42. back comes your pop-up duck.
  43.     Just 'cause you got a hard disk, no law says it's from it you
  44. have to boot.  And just 'cause you boot from a floppy, there's no
  45. reason not to run programmes on the hard disk.
  46.  
  47. * Or you could to set up a second set of config.sys and autoexec.bat
  48. * files, or use DOS 6's multiple configuration ability.  For those w/o DOS
  49. * 6, a batch file like the following (I named mine 'swap.bat') should make
  50. * switching configuations easier:
  51. *
  52. @echo off
  53. if not exist \angconf goto fromang
  54. if not exist \normconf goto fromnorm
  55. :error
  56. echo Hey! There's a problem with your swap program!
  57. goto end
  58. :fromang
  59. echo Restoring normal setup...
  60. copy \config.sys \angconf
  61. copy \normconf \config.sys
  62. del \normconf
  63. copy \autoexec.bat \angauto
  64. copy \normauto \autoexec.bat
  65. del \normauto
  66. goto done
  67. :fromnorm
  68. echo Setting up for Angband...
  69. copy \config.sys \normconf
  70. copy \angconf \config.sys
  71. del \angconf
  72. copy \autoexec.bat \normauto
  73. copy \angauto \autoexec.bat
  74. del \angauto
  75. goto done
  76. :done
  77. echo Set up complete.  Please reboot for it to take effect.
  78. :end
  79. *
  80. * That's it.  To make it work, make a copy of your \config.sys as \angconf,
  81. * and a copy of your \autoexec.bat as \angauto.  Then edit \angconf and
  82. * \angauto to take out everything you can spare, except for mabye himem.sys
  83. * and emm386 which would provide EMS memory if you have more than 640k of
  84. * memory in your computer, or a disk cache. (See below for details about
  85. * these...)  When you want to use Angband, run the above "swap" program,
  86. * and then reboot.  When your done with Angband, run "swap" again (it
  87. * will detect which setup is in use by the existance of either \angconf
  88. * or \normconf, so these files should be left alone), and then reboot again.
  89. *
  90. * With a bit more headaches, this "swap" batch file is expandable to more
  91. * configurations (I've run as many as 5), but you have to be very careful
  92. * about how things are copied and deleted, so you don't erase something
  93. * important.
  94.  
  95. You asked:
  96.  
  97.     ARGH!  The game is *so* slow.  What can I do?
  98.  
  99. A sales representative replies:
  100.  
  101. Buy a faster machine.  Get a faster hard disk!  Technology,
  102. technology and Yankee know-how, technology and, let's be honest,
  103. we're both people of the world, Japanese production techniques, are
  104. the answers to all our needs!
  105.     What's that you say? You want to use THIS machine?  And your
  106. recommendation to the free computers for employees programme depends
  107. on my proving it can be done?  Ah.  That puts a different complexion
  108. on matters.  May I use your phone...?
  109.                 * * *
  110. Yeah, yeah, ok.  Uh-huh.  Right.  Catch programmes?  Cache.  Right.
  111. And TSRs.  Yeah, ok.  Right.  Thanks, Lesley.
  112.                 * * *
  113. Great tech support, there.  Yeah, so the word is, you've got to get
  114. everything out of RAM that you can.  It's as simple as that.  All the
  115. TSRs, everything.  Even RAMdisks.
  116.  
  117. *
  118. * To speed up PC Angband 1.31, you have 2 basic options.  You can either use
  119. * a disk cache like "smartdrv", or you can make EMS memory available for
  120. * Angband to use for its overlay buffer.  Of the two, I believe that EMS
  121. * memory gives slightly better performance than smartdrv, but it's hard
  122. * to be sure.
  123. *
  124. * If you have more than 640k in your computer, and you have a fairly new
  125. * system, you should be able to use HIMEM and EMM386 to make EMS memory
  126. * available to Angband (Is there such a thing as EMM286?  I thought I
  127. * had seen such a thing, but I didn't take much note of it because I
  128. * have a 386).  If you are using Dos 6, you can insure that EMS memory
  129. * is available by putting these 2 lines at the start of your config.sys
  130. * file:
  131. *
  132. DEVICE=C:\DOS\himem.sys
  133. DEVICE=C:\DOS\emm386.exe RAM
  134. *
  135. * If you already have a line for himem.sys, you can keep it.  If you
  136. * already have a line for emm386, just be sure that there is no word
  137. * "NOEMS" after it, and add the word "RAM".
  138. * For slightly older versions of Dos, you should still insure that there
  139. * is a line for himem.sys at the beginning of your config.sys, and a
  140. * line for EMM386.  It may be called EMM386.SYS instead of .EXE,
  141. * depending on your version of Dos.  I'd start without the word "RAM",
  142. * and see if Angband runs better.  If it still swaps to disk, then add
  143. * "RAM".  I'm just not sure when they added that option.
  144. *
  145. * Also, if there is such a thing as emm286, most of what I said about
  146. * should apply, but you'll have to read your documentation if it doesn't
  147. * work.
  148. *
  149. * If you don't want to use EMS memory, or it doesn't work, or you cannot
  150. * use EMS memory, your alternative is to use a disk cache, like
  151. * smartdrv.  If you have memory over 640k, then you should set up your
  152. * cache to use that.  If you have only 640k, you will probably have to
  153. * make your disk cache quite small, in order to leave enough free memory
  154. * for Angband to run.  When it first starts, there will still be a few
  155. * pauses, but once the cache is filled with Angband, it should run w/o
  156. * going to the disk (assuming you've got a large enough cache to hold
  157. * all of the pieces of Angband that don't fit in memory).  If you had
  158. * to make the disk cache tiny so that it would fit into memory, it
  159. * may not provide any noticable improvement in performance -- you'll
  160. * have to be the judge.  I'd guess that a cache of less than 64k is
  161. * unlikely to be much help.
  162. *
  163. * That's about it.  For more info on freeing up memory, EMS memory, or
  164. * disk cache programs, try your DOS manual, or friends, or your local
  165. * BBS, or (try these last) the Usenet (comp.os.msdos.misc maybe?), or
  166. * email me (as a last resort).
  167. *             cteague@cs.umb.edu
  168.  
  169.